package com.example.springboot01.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName("teacher_class")
public class TeacherClass {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer teacherId;

    private Integer classId;

    @TableField(exist = false)
    private List<Integer> classIds;

}
